package top.ffhome.system.entity;

import java.util.Set;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import top.ffhome.common.entity.BaseEntity;

/** 用户表 */
@ApiModel
public class SysUser extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 账号 */
	@Getter
	@Setter
	@ApiModelProperty(value = "账号")
	private String account;
	/** 密码 */
	@Getter
	@Setter
	@ApiModelProperty(value = "密码")
	private String password;
	/** 盐 */
	@Getter
	@Setter
	@ApiModelProperty(hidden = true)
	private String salt;
	/** 用户名 */
	@Getter
	@Setter
	@ApiModelProperty(value = "用户名")
	private String name;
	/** 状态（0正常 1停用） */
	@Getter
	@Setter
	@ApiModelProperty(value = "状态（0正常 1停用）")
	private String status;

	/** 角色，查询结果 */
	@Getter
	@Setter
	@ApiModelProperty(value = "角色，查询结果")
	private String roles;
	/** 角色ID，保存时参数 */
	@Getter
	@Setter
	@ApiModelProperty(value = "角色ID，保存时参数")
	private Set<Long> roleIds;
}
